<!-- 微信分享 -->
<script>
    var ua = navigator.userAgent.toLowerCase();
    if(ua.match(/MicroMessenger/i)=="micromessenger") {
        (function(){
            var jweixin = document.createElement("script");jweixin.src = "http://res.wx.qq.com/open/js/jweixin-1.0.0.js";
            var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(jweixin, s);
        })();

        $.getJSON('http://srv.bigpixel.cn/api/weixin/getsignature?url=' + encodeURIComponent(socialinfo.link)).done(function (data) {
            console.log(data);
            wx.config({debug: false, appId: data.appId, timestamp: data.timestamp, nonceStr: data.nonceStr, signature: data.signature, jsApiList: ['onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareAppMessage', 'onMenuShareWeibo']});
            wx.ready(function () {
                wx.onMenuShareTimeline(socialinfo);
                wx.onMenuShareAppMessage(socialinfo);
                wx.onMenuShareQQ(socialinfo);
                wx.onMenuShareWeibo(socialinfo);
            });
        });
    }
</script>
<!-- 谷歌、百度统计代码 -->
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-56983622-1');ga('send', 'pageview');
    var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?00e4d98773c02201bbd493815c0cb964"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
</script>